if (NOT WTF_DIR)
    set(WTF_DIR "${CMAKE_SOURCE_DIR}/source/wtf")
endif ()
if (NOT FOOBAR_DIR)
    set(FOOBAR_DIR "${CMAKE_SOURCE_DIR}/source/foobar")
endif ()
if (NOT THIRDPARTY_DIR)
    set(THIRDPARTY_DIR "${CMAKE_SOURCE_DIR}/source/third-party")
endif ()
if (NOT TOOLS_DIR)
    set(TOOLS_DIR "${CMAKE_SOURCE_DIR}/tools")
endif ()

set(DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources")
set(WTF_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WTF")
set(FooBar_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/FooBar")
set(FooBarTestRunner_DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources/FooBarTestRunner")

set(FORWARDING_HEADERS_DIR ${DERIVED_SOURCES_DIR}/ForwardingHeaders)

set(bmalloc_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
set(WTF_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
set(FooBar_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
set(FooBar_PRIVATE_FRAMEWORK_HEADERS_DIR ${FORWARDING_HEADERS_DIR})
